package bidirectional.manytoone;

import java.util.Set;

import org.apache.commons.lang.builder.ToStringBuilder;

public class AddressBidirectionalManytoone {
	private Long id;
	private String street;
	private String number;
	private Set<PersonBidirectionalManytoone> people;
	
	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public String getStreet() {
		return street;
	}
	public void setStreet(String street) {
		this.street = street;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public void setPeople(Set<PersonBidirectionalManytoone> people) {
		this.people = people;
	}
	public Set<PersonBidirectionalManytoone> getPeople() {
		return people;
	}

	@Override
	 public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
